<div ng-if="pageNum>0" class="pagination">
    <a ng-if="prevPage>-1" href="javascript:void(0);" ng-click="onClick(prevPage)" class="prev" ng-class="{disabled: prevPage<0}">上一页</a>
    <span ng-if="prevPage<0" class="prev" ng-class="{disabled: prevPage<0}">上一页</span>

    <strong ng-repeat="p in pages track by $index">
      <a ng-if="p!=curPage&&p!='...'" href="javascript:void(0);" ng-click="onClick(p)" class="page" ng-class="{current: p==curPage||p=='...'}">{{p+1}}</a>
      <span ng-if="p==curPage&&p!='...'" class="page current"}">{{p+1}}</span>
      <span ng-if="p=='...'" class="page ellipsis">{{p}}</span>
    </strong>

    <a ng-if="nextPage>-1" href="javascript:void(0);" ng-click="onClick(nextPage)" class="next" ng-class="{disabled: nextPage<0}">下一页</a>
    <span ng-if="nextPage<0" class="next" ng-class="{disabled: nextPage<0}">下一页</span>
</div>